public class darrplus {
    public static void main(String[] args) {
        int [][]arr1={
                {22,66,44},
                {77,33,88},
                {25,34,24},
                {32,42,22}
        };
        int arr1sum=0;
        for(int i=0;i<arr1.length;i++){
            int []qarr=arr1[i];
            int sum=getSum(qarr);
            System.out.println("第"+(i+1)+"个季度的总营业额"+sum);
            arr1sum+=sum;
        }
    }
    public static int getSum(int []arr){
        int sum=0;
        for(int i=0;i<arr.length;i++){
            sum+=arr[i];
        }
        return sum;
    }
}
